Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix junkie/smoker quirks not processing #4836

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Jan 12, 2025

About The Pull Request

Fixes #4834

Why It's Good For The Game

bugfix meow

Changelog

🆑
fix: Fixed the addictions from the Junkie and Smoker quirks curing themselves.
/:cl:

@Absolucy Absolucy added the Fix fix da bug label Jan 12, 2025
@Absolucy Absolucy force-pushed the fix-junkie-not-processing branch from 9e65d91 to be1b4ce Compare January 12, 2025 05:15
@Absolucy Absolucy merged commit 14c3f0c into Monkestation:master Jan 15, 2025
24 checks passed
@Absolucy Absolucy deleted the fix-junkie-not-processing branch January 15, 2025 04:27
github-actions bot added a commit that referenced this pull request Jan 15, 2025
Jacquerel pushed a commit to tgstation/tgstation that referenced this pull request Jan 26, 2025
## About The Pull Request

Several quirks that process have some common checks and patterns: only
processing if the mob's stat is conscious or not dead, or not processing
if they have certain traits.

This refactors quirk processing so those checks are a part of
`/datum/quirk` itself, and the quirk will automatically be start/stop
being processed by `SSquirks` based on those conditions, by registering
signals to re-check if the quirk should be processing or not.

This ports said refactor from my downstream PR,
Monkestation/Monkestation2.0#4642 (and is
unaffected by the bug that
Monkestation/Monkestation2.0#4836 fixes, due to
additional refactors regarding trait handling)

## Why It's Good For The Game

Less repetitive code is always better, and leaves less room for errors.
Also, completely stopping the quirk from being processed by `SSquirks`
can save a minuscule amount of CPU time.

## Changelog
:cl:
refactor: Refactored how quirks handle starting/stopping processing.
/:cl:
vinylspiders pushed a commit to NovaSector/NovaSector that referenced this pull request Jan 28, 2025
## About The Pull Request

Several quirks that process have some common checks and patterns: only
processing if the mob's stat is conscious or not dead, or not processing
if they have certain traits.

This refactors quirk processing so those checks are a part of
`/datum/quirk` itself, and the quirk will automatically be start/stop
being processed by `SSquirks` based on those conditions, by registering
signals to re-check if the quirk should be processing or not.

This ports said refactor from my downstream PR,
Monkestation/Monkestation2.0#4642 (and is
unaffected by the bug that
Monkestation/Monkestation2.0#4836 fixes, due to
additional refactors regarding trait handling)

## Why It's Good For The Game

Less repetitive code is always better, and leaves less room for errors.
Also, completely stopping the quirk from being processed by `SSquirks`
can save a minuscule amount of CPU time.

## Changelog
:cl:
refactor: Refactored how quirks handle starting/stopping processing.
/:cl:
# Conflicts:
#	code/datums/quirks/_quirk.dm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smoker trait's addiction permanently curing itself
1 participant